package cn.consult.sys.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.consult.sys.entity.TWeEquipment;
import com.github.pagehelper.PageInfo;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * 水电设备管理(TWeEquipment)表服务接口
 *
 * @author makejava
 * @since 2024-04-09 09:13:13
 */
public interface TWeEquipmentService extends IService<TWeEquipment> {

    IPage<TWeEquipment> selectPage(Map<String, Object> params);

    boolean saveWeEquipment(TWeEquipment tWeEquipment);


    boolean updateWeEquipment(TWeEquipment tWeEquipment);

    boolean openWater(Long id);

    boolean closeWater(Long id);





    boolean operationElectricity(Long id, Long type, HttpServletRequest request);

    boolean operationWater(Long id, Long type, HttpServletRequest request);

    boolean get(Long type);
}

